﻿using BasicInformation.ErrorCode;
using MediatR;
using SqlSugar;

namespace BasicInformation.ApiWrite.Application.Command.Category
{
    public class AddCategoryCommand:IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 类别编号(自动生产)
        /// </summary>
        public string CategoryCode { get; set; }
        /// <summary>
        /// 类别名称
        /// </summary>
        [SugarColumn(Length = 50)]
        public string CategoryName { get; set; }
        /// <summary>
        ///上级类别
        /// </summary>
        public int CategoryParent { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? CategoryRemark { get; set; }
    }
}
